package jy.hibernate.beans;

import java.util.Set;

/**
 *   Function entity
 * @author tingzi
 *
 */
public class Function implements java.io.Serializable{

	private static final long serialVersionUID = -1954737436354588018L;
	//Field
	private Integer fun_id;//自增长id
	private String fun_name;//功能名字
	private Set<Resources> resources;
	public Integer getFun_id() {
		return fun_id;
	}
	public void setFun_id(Integer fun_id) {
		this.fun_id = fun_id;
	}
	public Set<Resources> getResources() {
		return resources;
	}
	public void setResources(Set<Resources> resources) {
		this.resources = resources;
	}
	public String getFun_name() {
		return fun_name;
	}
	public void setFun_name(String fun_name) {
		this.fun_name = fun_name;
	}
	public Function(String fun_name) {
		super();
		this.fun_name = fun_name;
	}
	@Override
	public String toString() {
		
		return "function Name:"+this.fun_name;
	}

}
